Bug fixes and certificate and hostname verification for the Emacs GnuTLS support.
authorTed Zlatanov <tzz@lifelogs.com>
Mon, 25 Apr 2011 01:31:45 +0000 (20:31 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Mon, 25 Apr 2011 01:31:45 +0000 (20:31 -0500)
commite716e9447a76f6e5581d769ed3a7a904ddac9063
treecb01763c5ad9a8ad7c58dfb27b48f4118a8a2cbe
parenta7305dc126a0f169cf1e433789b10ba5cbcacb47
Bug fixes and certificate and hostname verification for the Emacs GnuTLS support.

* lisp/net/gnutls.el (gnutls-negotiate): Add hostname, verify-flags,
verify-error, and verify-hostname-error parameters.  Check whether
default trustfile exists before going to use it. Add missing
argument to gnutls-message-maybe call. Return return value.
Reported by Claudio Bley <claudio.bley@gmail.com>.
(open-gnutls-stream): Add usage example.

* lisp/net/network-stream.el (network-stream-open-starttls): Give host
parameter to `gnutls-negotiate'.
(gnutls-negotiate): Adjust `gnutls-negotiate' declaration.
lisp/ChangeLog
lisp/net/gnutls.el
lisp/net/network-stream.el